﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlSugarAndEntity.Entity
{
    [SugarTable("news",TableDescription ="爬取的新闻表")]
    public class news
    {
        [SugarColumn(IsPrimaryKey =true)]
        public string ID { get; set; }
        public string Author { get; set; }
        public DateTime PublishTime { get; set; }
        public string Title { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(500)")]
        public string Abstract { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(5000)")]
        public string Content { get; set; }
        public string RequestPath { get; set; }
        public string Type { get; set; }
        [SugarColumn(IsIgnore = true)]
        public List<newsfile> newsfiles { get; set; }
    }
}
